#ifndef BOTTOMLIGHTBUTTON_H
#define BOTTOMLIGHTBUTTON_H

#include <QWidget>
#include "lightbutton.h"
#include "qdatetime.h"
#include "qtimer.h"

namespace Ui {
class bottomLightButton;
}

class bottomLightButton : public QWidget
{
    Q_OBJECT

public:
    explicit bottomLightButton(QWidget *parent = nullptr);
    ~bottomLightButton();
    QTimer *timer;
    void startInit();
    void setAllMachineGreen();
    void setOneMachineErrro(int, QString);
    void setOneIng(int);
    void setLabelInfo(int, QString);
    void setLightColorYellow(int);
    void setLightColorInit();
private:
    Ui::bottomLightButton *ui;
    QList<LightButton *> btnsLight;
    int type;
    bool isProgressOn = false;
private slots:
    void initForm();
    void updateValue();
};

#endif // BOTTOMLIGHTBUTTON_H
